<#escape x as x?html>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>高级中学选课与学分认定系统</title>
    <link rel="stylesheet" type="text/css" href="${rc.contextPath}/resources/css/easyui.css">
    <link rel="stylesheet" type="text/css" href="${rc.contextPath}/resources/css/icon.css">
    <style type="text/css">
        * {
            font-size: 12px;
        }

        body {
            font-family: "微软雅黑";
            padding: 20px;
            font-size: 13px;
            margin: 0;
        }
    </style>
    <script type="text/javascript" src="${rc.contextPath}/resources/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/resources/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/resources/js/jquery.timers-1.2.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/resources/js/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/resources/js/share.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/resources/js/authoritymanage.js"></script>
</head>
<body class="easyui-layout" data-options="fit:true">
<div data-options="region:'center'">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'center',title:'系统角色'">
            <table id="role_table" class="easyui-datagrid"
                   data-options="
                   fit:true,
                   rownumbers:true,
                   singleSelect:true,
                   url:'role/list/all'
               ">
                <thead>
                <tr>
                    <th data-options="field:'roleName',width:200,align:'center'">角色名称</th>
                    <th data-options="field:'roleCode',width:200,align:'center'">角色编码</th>
                    <th data-options="field:'roleDescription',width:300,align:'center'">角色说明</th>
                    <th data-options="field:'roleId',width:100,formatter:add_role_member_formatter,align:'center'"></th>
                </tr>
                </thead>
            </table>

        </div>
        <div data-options="region:'south',split:true,border:false" style="height:300px">
            <table id="role_member" class="easyui-datagrid"
                   data-options="
                   fit:true,
                   rownumbers:true,
                   singleSelect:true,
                   pagination: true,
                   pageSize: 10,
                   title:'角色成员',
                   loadFilter:pageLoadFilter
                   ">
                <thead>
                <tr>
                    <th data-options="field:'memberName',width:100,align:'center'">成员姓名</th>
                    <th data-options="field:'identityCardNumber',width:150,align:'center'">身份证号</th>
                    <th data-options="field:'sex',width:80,align:'center',formatter: function (value, row, index) {
                        return sex[value];
                    }">性别</th>
                    <th data-options="field:'nation',width:100,align:'center',formatter: function (value, row, index) {
                        return nation[value-1];
                    }">民族</th>
                    <th data-options="field:'birthday',width:100,align:'center'">出生日期</th>
                    <th data-options="field:'memberId',width:100,formatter:delete_role_member_formatter,align:'center'"></th>
                </tr>
                </thead>
            </table>
        </div>
    </div>

</div>
<div data-options="region:'east',split:true" style="width:180px">
    <div class="easyui-panel" data-options="title:'角色权限',fit:true">
        <ul id="role_catalog" class="easyui-tree" data-options="animate: true">
        </ul>
    </div>
</div>

<div id="add_member_dlg" class="easyui-dialog" title="添加角色成员" style="width:350px;height:150px;padding:10px"
     data-options="
                iconCls: 'icon-add',
                buttons: '#add_member_buttons',
                modal:true,
                closed:true
            ">
    <div style="padding:10px 0 10px 60px">
        <table style="text-align: center">
            <tr>
                <td>教师姓名：</td>
                <td>
                    <select id="member_combo" class="easyui-combogrid" style="width:100px" data-options="">
                    </select>
                </td>
            </tr>
        </table>
    </div>

</div>
<div id="add_member_buttons">
    <a id="add_member_submit" href="#" class="easyui-linkbutton" data-options="iconCls: 'icon-ok'">提交</a>
</div>

</body>
</html>
</#escape>